package me.zhengjie.utils;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

/**
 * 类描述：
 *
 * @author create by liuxiangxuan
 * @date 2025/5/20 下午 04:45
 */
public class CustomPage<T> extends Page<T> {
    private long offset;
    private long limit;

    public CustomPage(long current, long size) {
        super(current, size);
        this.offset = (current - 1) * size;
        this.limit = size;
    }

    // Getter 和 Setter 方法
    public long getOffset() { return offset; }
    public void setOffset(long offset) { this.offset = offset; }
    public long getLimit() { return limit; }
    public void setLimit(long limit) { this.limit = limit; }
}
